
export default {
    id: "Prescription_medicationEntity",
    returnTotal: true,
    modelFile: "prescription/dataset/Prescription_medicationEntity.xml",
    //主从配置
    relation: {
        selfField: ["prescription_id"],
        parentField: ["record_id"]
    },
    sortFields: [
        "record_id",
        "record_status",
        "create_by",
        "create_date",
        "update_by",
        "update_date",
        "prescription_id",
        "drug_code",
        "drug_name",
        "specifications",
        "each_times",
        "quantity",
        "frequency",
        "total_day",
        "drug_usage",
        "total_quantity",
        "unit",
        "opinion",
        "drug_in_store",
        "enterprise_desc",
        "enterprise_id",
        "drug_store_name",
        "drug_store_id"

    ],
    fields: {
        record_id: {
            name: "record_id", //字段ID
            label: "记录编号", //字段描述
            dbtype: "dbString", //数据类型

        },

        record_status: {
            name: "record_status", //字段ID
            label: "状态", //字段描述
            dbtype: "dbInt", //数据类型
            length: 25,
            readonly: true,
        },
        create_by: {
            name: "create_by", //字段ID
            label: "创建人", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        create_date: {
            name: "create_date", //字段ID
            label: "创建时间", //字段描述
            dbtype: "dbDate", //数据类型
            readonly: true,

        },
        update_by: {
            name: "update_by", //字段ID
            label: "更新人", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },


        update_date: {
            name: "update_date", //字段ID
            label: "更新时间", //字段描述
            dbtype: "dbDate", //数据类型

        },
        prescription_id: {
            name: "prescription_id", //字段ID
            label: "处方编号", //字段描述
            dbtype: "dbString", //数据类型   
            readonly: true,
        },

        drug_code: {
            name: "drug_code", //字段ID
            label: "条形码", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        drug_name: {
            name: "drug_name", //字段ID
            label: "药品名称", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        specifications: {
            name: "specifications", //字段ID
            label: "规格", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        each_times: {
            name: "each_times", //字段ID
            label: "每次", //字段描述
            dbtype: "dbFloat", //数据类型
            readonly: true,
        },

        quantity: {
            name: "quantity", //字段ID
            label: "量", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },

        frequency: {
            name: "frequency", //字段ID
            label: "频率", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        total_day: {
            name: "total_day", //字段ID
            label: "天数", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        drug_usage: {
            name: "drug_usage", //字段ID
            label: "用法", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        total_quantity: {
            name: "total_quantity", //字段ID
            label: "总量", //字段描述
            dbtype: "dbInt", //数据类型
            readonly: true,
        },
        unit: {
            name: "unit", //字段ID
            label: "单位", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        opinion: {
            name: "opinion", //字段ID
            label: "嘱托", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        drug_in_store: {
            name: "drug_in_store", //字段ID
            label: "店内编码", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        enterprise_desc: {
            name: "enterprise_desc", //字段ID
            label: "企业名称", //字段描述
            dbtype: "dbString", //数据类型

        },
        enterprise_id: {
            name: "enterprise_id", //字段ID
            label: "企业ID", //字段描述
            dbtype: "dbString", //数据类型

        },

        drug_store_id: {
            name: "drug_store_id", //字段ID
            label: "药店编号", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        drug_store_name: {
            name: "drug_store_name", //字段ID
            label: "药店名称", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
    }
}
